package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * CcSolDet generated by hbm2java
 */
@Entity
@Table(name = "CC_SOL_DET", schema = "CTACTE")
@SequenceGenerator(name="SEQ_CC_SOL_DET" , sequenceName="SEQ_CC_SOL_DET")
public class CcSolDet implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2877413207626360441L;
	private Long csolDet;
	 private Long csolicitud;
	private String ctipoDoc;
	private String ctipoUso;
	private Long ccantidad;
	private String cestado;
 

	private Set<CcSolImpresion> ccSolImpresions = new HashSet<CcSolImpresion>(0);

	public CcSolDet() {
		
	}
	public CcSolDet(Long csolDet) {
		this.csolDet = csolDet;
		
	}

	public CcSolDet(Long csolDet, Long csolicitud) {
		this.csolDet = csolDet;
		this.csolicitud = csolicitud;
	}

	public CcSolDet(Long csolDet, Long csolicitud, String ctipoDoc,
			String ctipoUso, Long ccantidad, String cestado,
			Set<CcSolImpresion> ccSolImpresions) {
		this.csolDet = csolDet;
		this.csolicitud = csolicitud;
		this.ctipoDoc = ctipoDoc;
		this.ctipoUso = ctipoUso;
		this.ccantidad = ccantidad;
		this.cestado = cestado;
		this.ccSolImpresions = ccSolImpresions;
	}

	@Id
	@Column(name = "C_SOL_DET", unique = true, nullable = false, precision = 10, scale = 0)
	@GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_CC_SOL_DET")
	public Long getCsolDet() {
		return this.csolDet;
	}

	public void setCsolDet(Long csolDet) {
		this.csolDet = csolDet;
	}

 

	@Column(name = "C_SOLICITUD", nullable = false, length = 10)
	public Long getCsolicitud() {
		return csolicitud;
	}

	public void setCsolicitud(Long csolicitud) {
		this.csolicitud = csolicitud;
	}

	@Column(name = "C_TIPO_DOC", length = 2)
	public String getCtipoDoc() {
		return this.ctipoDoc;
	}

	public void setCtipoDoc(String ctipoDoc) {
		this.ctipoDoc = ctipoDoc;
	}

	@Column(name = "C_TIPO_USO", length = 2)
	public String getCtipoUso() {
		return this.ctipoUso;
	}

	public void setCtipoUso(String ctipoUso) {
		this.ctipoUso = ctipoUso;
	}

	@Column(name = "C_CANTIDAD", precision = 22, scale = 0)
	public Long getCcantidad() {
		return this.ccantidad;
	}

	public void setCcantidad(Long ccantidad) {
		this.ccantidad = ccantidad;
	}

	@Column(name = "C_ESTADO", length = 2)
	public String getCestado() {
		return this.cestado;
	}

	public void setCestado(String cestado) {
		this.cestado = cestado;
	}
	

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "ccSolDet")
	public Set<CcSolImpresion> getCcSolImpresions() {
		return this.ccSolImpresions;
	}

	public void setCcSolImpresions(Set<CcSolImpresion> ccSolImpresions) {
		this.ccSolImpresions = ccSolImpresions;
	}

}
